POV-Ray : Newsgroups : povray.beta-test : strange recursion error : strange recursion error Server Time
29 Jul 2024 18:27:57 EDT (-0400)
  strange recursion error  
From:
Date: 15 Mar 2002 11:47:09
Message: <at849uk68rnqhu92mhbkng6ho01tl23178@4ax.com>
POV 3.5 b 13 icl on WinNT Sp 6 PII 233 with 128 MB

Below script:

  #local g=function(_){ceil(_)-_};
  plane{-z,-5 pigment{function{ g(atan2(x,y))}} finish{ambient 1}}

returns:

  Rendering Error: Stack full. Possible infinite recursive function call.

but when I inline function and write script this way:

  plane{-z,-5 pigment{function{ ceil(atan2(x,y))-atan2(x,y) }} finish{ambient 1}}

then it is rendered fine. Any confirmation ?
As extended testing example use my signature :-)
Btw: Am I only active beta-tester or just lucky one ?

ABX
--
disc{z,-z 5#macro O()asc(substr("-+((1*(,1,/.-,*/(,&.323/'1"e,1))*.1-4#declare
e=e-1;#end#local e=26;pigment{#local g=function(_){ceil(_)-_}function#local//X
k=function{pattern{object{sphere_sweep{linear_spline 13#while(e>0)<O(),O()//AB
>.01#end}}}}{k(g(atan2(x,y)),g(ln((y+x)^2+1e-5)),0)}}finish{ambient 1}}//POV35


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.